using System;
using System.Collections.Generic;
using System.Text;

namespace GPSNav.NET
{
	public struct GeoSize
	{
		public static GeoSize Empty = new GeoSize(0, 0);

		private double height;
		public double Height
		{
			get { return height; }
			set { height = value; }
		}

		private double width;
		public double Width
		{
			get { return width; }
			set { width = value; }
		}



		public GeoSize(double width, double height)
		{
			this.width = width;
			this.height = height;
		}


		public override string ToString()
		{
			return String.Format("GeoSize {{ Width:{0}, Height:{1} }}", width, height);
		}






		public override bool Equals(object obj)
		{
			return base.Equals(obj);
		}
		public override int GetHashCode()
		{
			return base.GetHashCode();
		}

		public static bool operator !=(GeoSize s1, GeoSize s2)
		{
			return !(s1==s2);
		}
		public static bool operator ==(GeoSize s1, GeoSize s2)
		{
			return (s1.Width==s2.Width && s1.Height==s2.Height);
		}




	}
}
